<div class="col-md-3 left_col">
    <div class="left_col scroll-view">
        <div class="navbar nav_title" style="border: 0;">
            <a href="${base}/index" class="site_title"><span>管理后台</span></a>
        </div>

        <div class="clearfix"></div>

        <!-- menu profile quick info -->
        <div class="profile">
            <div class="profile_pic">
                <img src="{{ URL::asset('images/users-female.png') }}" alt="..." class="img-circle profile_img">
            </div>
            <div class="profile_info">
                <span>欢迎,</span>
                <h2>ADMIN</h2>
            </div>
        </div>
        <!-- /menu profile quick info -->

        <br/>

         
         

        <!-- sidebar menu -->
        <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            <div class="menu_section">
                <h3>&nbsp;</h3>

                <ul class="nav side-menu">
                    <li><a href="###"><i class="fa fa-home"></i>
                        主页 <span class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                             <li><a href="${base}/index">Dashboard</a></li>
                         </ul>
                    </li>
                    @inject('menuModel','App\Menu')
                    @foreach ($menuModel::getSysMenus() as $menu)
                        <li><a><i class="{{$menu->menu_icon }}"></i> {{$menu->menu_name }}<span
                                class="fa fa-chevron-down"></span></a>
                            <ul class="nav child_menu">
                                @foreach ($menu->child as $submenu)
                                    <li><a href="{{URL::to($submenu->menu_url)}}">{{$submenu->menu_name }}</a>
                                @endforeach
                            </ul>
                        </li>
                    @endforeach
                        
                </ul>
            </div>

        </div>
        <!-- /sidebar menu -->

        <!-- /menu footer buttons -->
        <div class="sidebar-footer hidden-small">
            <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
            </a>
            <a data-toggle="tooltip" data-placement="top" onclick="launchFullscreen();" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
            </a>
            <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
            </a>
            <a data-toggle="tooltip" data-placement="top" title="Logout" href="${base}/logout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <!-- /menu footer buttons -->
    </div>
</div>
<script type="text/javascript">
    var isFull = false;
    function launchFullscreen(element) {
        if (!element)
            element = document.documentElement;

        if (!isFull) {

            if (element.requestFullscreen) {
                element.requestFullscreen();
            } else if (element.mozRequestFullScreen) {
                element.mozRequestFullScreen();
            } else if (element.webkitRequestFullscreen) {
                element.webkitRequestFullscreen();
            } else if (element.msRequestFullscreen) {
                element.msRequestFullscreen();
            }
            isFull = true;
        } else {
            if (document.exitFullscreen) {
                document.exitFullscreen();
            }
            else if (document.webkitCancelFullScreen) {
                document.webkitCancelFullScreen();
            }
            else if (document.mozCancelFullScreen) {
                document.mozCancelFullScreen();
            }
            isFull = false;
        }
    }
</script>